import request from '@/utils/request'

// 查询租赁合同帐期列表
export function listLeaseaccper(query) {
  return request({
    url: '/fang/leaseaccper/list',
    method: 'get',
    params: query
  })
}

// 查询租赁合同帐期详细
export function getLeaseaccper(id) {
  return request({
    url: '/fang/leaseaccper/' + id,
    method: 'get'
  })
}

// 新增租赁合同帐期
export function addLeaseaccper(data) {
  return request({
    url: '/fang/leaseaccper',
    method: 'post',
    data: data
  })
}

// 修改租赁合同帐期
export function updateLeaseaccper(data) {
  return request({
    url: '/fang/leaseaccper',
    method: 'put',
    data: data
  })
}

// 删除租赁合同帐期
export function delLeaseaccper(id) {
  return request({
    url: '/fang/leaseaccper/' + id,
    method: 'delete'
  })
}
